// import com.alibaba.druid.sql.ast.SQLExpr_ptr;
// import com.alibaba.druid.sql.ast.SQLLimit_ptr;
// import com.alibaba.druid.sql.ast.SQLName_ptr;
// import com.alibaba.druid.sql.ast.SQLOrderBy_ptr;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlShowTopologyStatement.h"
#include "../../visitor/MySqlASTVisitor.h"
#include "../../../../ast/SQLExpr.h"
#include "../../../../ast/SQLLimit.h"
#include "../../../../ast/SQLName.h"
#include "../../../../ast/SQLOrderBy.h"

SQLLimit_ptr MySqlShowTopologyStatement::getLimit()
{
  return limit;
}

void MySqlShowTopologyStatement::setLimit(SQLLimit_ptr limit)
{
  this->limit = limit;
}

SQLOrderBy_ptr MySqlShowTopologyStatement::getOrderBy()
{
  return orderBy;
}

void MySqlShowTopologyStatement::setOrderBy(SQLOrderBy_ptr orderBy)
{
  this->orderBy = orderBy;
}

SQLExpr_ptr MySqlShowTopologyStatement::getWhere()
{
  return where;
}

void MySqlShowTopologyStatement::setWhere(SQLExpr_ptr where)
{
  this->where = where;
}

SQLName_ptr MySqlShowTopologyStatement::getName()
{
  return name;
}

void MySqlShowTopologyStatement::setName(SQLName_ptr name)
{
  this->name = name;
}

BOOL_ptr MySqlShowTopologyStatement::isFull()
{
  return full;
}

void MySqlShowTopologyStatement::setFull(BOOL_ptr full)
{
  this->full = full;
}

void MySqlShowTopologyStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlShowTopologyStatement)))
  {
    acceptChild(visitor, name);
    acceptChild(visitor, where);
    acceptChild(visitor, orderBy);
    acceptChild(visitor, limit);
  }
  visitor->endVisit(SharedObject(MySqlShowTopologyStatement));
}
